	function patientFormatter(value,row,index){
		if(row.patient!=null){
			return row.patient.name;			
		}
	}
	function registrationChargeTypeFormatter(value,row,index){
		if(row.registrationChargeType!=null){			
			return row.registrationChargeType.typeName;
		}
	}
	function registrationTypeFormatter(value,row,index){
		if(row.type==1){
			return "初诊";
		}
		if(row.type==2){
			return "复诊";
		}
	}
	function sectionFormatter(value,row,index){
		if(row.section!=null){
			return row.section.name;
		}
	}
	function userFormatter(value,row,index){
		if(row.user!=null){
			return row.user.name;
		}
	}
	function stageFormatter(value,row,index){
		if(row.stage==0){
			return "上午";
		}
		if(row.stage==1){
			return "下午";
		}
	}
	
	function registerStateFormatter(value,row,index){
		if(row.registerState==0){
			return "未登记";
		}else{
			return "已登记";
		}
	}
	
	function registrationSelectCondition(){
		alert(1);
		var postData = {name:$("#weidengPatientName").val()};
		postData["registrationChargeType.id"]=$("#todayRegistrationRankClassType").val();
		postData["type"]=$("#todayRegistrationType").val();
		postData["section.id"]=$("#todayRegistrationSection").val();
		$("#registrationTable").datagrid("reload",postData);
	}
	